package com.jin.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.jin.service.MyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    MyUserService myUserService;

    @RequestMapping("getUserInfo")
    public String getUserInfo(String id) {
        return myUserService.getUserInfo(id);
    }

}
